package com.gitee.magic.framework.head.exception;

import com.gitee.magic.core.exception.ApplicationException;
import com.gitee.magic.core.utils.StackTraceInfo;

/**
 * 由业务而产生的异常信息
 * @author Start
 */
public class BusinessException extends  ApplicationException {
	
	private static final long serialVersionUID = 1L;
	
	private Object[] args;
	
	public BusinessException(Throwable e){
		super(StackTraceInfo.getStackTrace(e));
	}
	
	public BusinessException(String message){
		super(message);
	}
	
	public BusinessException(String message,Object... args){
		this(message);
		this.args=args;
	}

	public Object[] getArgs() {
		return args;
	}
	
}
